<!--加载全局布局文件-->
<% layout('layout')%>

<!--在这里编写你的代码-->
<div class="ng-cloak" ng-controller="ClassifyCtrl" ng-cloak>

    <header data-am-widget="header" class="am-header am-header-default am-header-fixed am-margin-0 am-padding-0">
        <div ng-if="sort == 'xp'" ng-cloak>
            <div ng-click="sortStr('xp')" class="am-u-sm-4 am-text-center" style="background-color: mintcream">新品</div>
            <div ng-click="sortStr('rm')" class="am-u-sm-4 am-text-center" style="border-left: 1px solid darkorange;border-right: 1px solid #f6976a;">热卖</div>
            <div ng-click="sortStr('jg')" class="am-u-sm-4 am-text-center">价格<i class="am-icon-arrow-up"></i></div>
        </div>
        <div ng-if="sort == 'rm'" ng-cloak>
            <div ng-click="sortStr('xp')" class="am-u-sm-4 am-text-center">新品</div>
            <div ng-click="sortStr('rm')" class="am-u-sm-4 am-text-center" style="background-color: mintcream; border-left: 1px solid darkorange;border-right: 1px solid #f6976a;">热卖</div>
            <div ng-click="sortStr('jg')" class="am-u-sm-4 am-text-center">价格<i class="am-icon-arrow-up"></i></div>
        </div>
        <div ng-if="sort == 'jg'" ng-cloak>
            <div ng-click="sortStr('xp')" class="am-u-sm-4 am-text-center">新品</div>
            <div ng-click="sortStr('rm')" class="am-u-sm-4 am-text-center" style="border-left: 1px solid darkorange;border-right: 1px solid #f6976a;">热卖</div>
            <div ng-click="sortStr('jg')" class="am-u-sm-4 am-text-center" style="background-color: mintcream">价格<i class="am-icon-arrow-up"></i></div>
        </div>
    </header>

    <div data-am-widget="list_news" class="am-list-news am-list-news-default app-bg-white am-margin-0 am-padding-xs">
        <div class="am-list-news-bd">
            <ul class="am-list">
                <li ng-repeat="p in ClassifyProductArray" class="am-g am-list-item-desced am-list-item-thumbed am-list-item-thumb-left app-relative">
                    <a ng-href="/detail/{{p.objectId}}" class="am-block" >
                        <div class="am-u-sm-5">
                            <img ng-src="{{p.img}}" width="100%" height="100%" class="am-radius"/>
                        </div>
                        <div class="am-u-sm-7 am-list-main">
                            <h3 class="am-list-item-hd"><span ng-bind="p.name"></span></h3>
                            <span class="am-badge am-badge-primary am-radius"><i class="am-icon-tag"></i><span ng-bind="p.minSpecName"></span></span>
                            <div class="am-list-item-text line-clamp"><span ng-bind="p.intro"></span></div>
                            <div class="am-text-default am-text-danger">￥<span ng-bind="p.minPrice"></span></div>
                            <div class="am-text-xs app-color-gray"><span ng-bind="p.commentCount"></span>人已评</div>
                        </div>
                    </a>
                    <button class="app-lsit-cart" ng-click='addToCart(p.objectId,p.minSpec,1,p.name)'></button>
                </li>
            </ul>
        </div>
        <div class="am-list-news-ft" ng-if="getMore">
            <a class="am-list-news-more am-btn am-btn-default am-margin-xs am-radius" ng-click="getMoreProsLimit()">加载更多 &raquo;</a>
        </div>
    </div>
</div>
<% include ../navbar.ejs %>
<% block('footer').append('<script src="'+CDN+'script/classify.js"></script>') %>











